 @extends('home.layout.usermodify')

@section('content')
<head>
    <title>{{$title}}</title>
</head>
<div class="right_cont fr">
  <div class="right_cont fr balance ">
    <h5 class="center_name ui_bg2 fn">基本信息
      <span class="one"></span>
      <span class="two"></span>
      <span class="three"></span>
      <span class="four"> </span>
    </h5>
    <div class="acc_cont mt10 ui_bg2">
    @if (count($errors) > 0)
        <div class="mark">
          <ul>
            @if(is_object($errors))
              @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
              @endforeach
            @else
              <li>{{ $errors }}</li>
            @endif
          </ul>
        </div>
      @endif
      <form action="/home/usersettings/doedit" method="post">
        {{csrf_field()}}
        <ul class="acc_ul clearfix">
          <li>
            <span>头像：</span>
            <div class="right">
              <div class="head_pic">
                <img src="{{$userinfo['photo']}}" alt="" width="80" height="80">
                <a href="/home/usersettings/photos" class="f12">修改头像</a></div>
            </div>
          </li>
          <li>
            <span>昵称：</span>
            <div class="right">
              <input placeholder="请输入昵称" class="w270 current_nickname" maxlength="12" name="nickname" type="text" value="{{$userinfo['nickname']}}">

            </div>
          </li>
          <li>
            <span >年龄：</span>
            <div class="right">
              <input placeholder="" class="w270 current_nickname" maxlength="12" name="age" type="text" value="{{$userinfo['age']}}"></div>
          </li>
          <li>
            <span>性别：</span>
            <div class="right">
              <input placeholder="" class="w270 current_nickname" maxlength="12" name="sex" type="text" value="{{$userinfo['sex']}}"></div>
          </li>
          <li>
            <span >手机号码：</span>
            <div class="right">
              <var>{{$userinfo['phone']}}</var>
              <a href="/home/usersecurity/userphone">修改</a></div>
          </li>

          <li>
            <span>常用邮箱：</span>
            <div class="right">
              <input placeholder="" class="w270 email" name="email" type="text" value="{{$userinfo['email']}}">
            </div>
          </li>
          <li>
            <span>个人签名：</span>
            <div class="right">
            <textarea name="description" id="" cols="25" rows="5" style="border:1px solid #999;">{{$userinfo['description']}}</textarea>
            </div>
          </li>
        </ul>
        <input class="ui_btn mt30 ml95 submit_btn" value="保 存" type="submit">
      </form>
    </div>
  </div>
</div>

@endsection